package com.xhl.noval.api.service;

import com.xhl.noval.api.core.entity.ApiResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;

import java.io.IOException;

/**
 * @author xionghl
 * @Description: 小说爬虫-service层
 * @date 2022/4/16 15:29
 */
@Api(tags = "埋点")
@FeignClient(name = "xhl-noval-svc", url = "${feign.url.xhl-noval-svc:}")
@Validated
public interface NovelService {

    @ApiOperation("爬取单个小说")
    @GetMapping("/novel/resolveSingleNovel")
    ApiResult<String> resolveSingleNovel(String url) throws IOException;

    @ApiOperation("test")
    @GetMapping("/novel/test")
    String resolveWebsiteNovel();
}
